package com.etaoking.commons;

import java.util.List;

public class Page {
	
	private static int default_page_size = 5;
	
	private int pageSize = default_page_size; // 每页的记录数
	
	private int currentPageNo = 1;// 当前页码
	
	private int nextPageNo = 1;//上一页
	
	private int prePageNo = 1;//下一页
	
	private int totalCount; // 总记录数
	
	private Object data; // 当前页中存放的记录,类型一般为List
	
	private List<String> array;

	public static int getDefault_page_size() {
		return default_page_size;
	}

	public static void setDefault_page_size(int default_page_size) {
		Page.default_page_size = default_page_size;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getCurrentPageNo() {
		return currentPageNo;
	}

	public void setCurrentPageNo(int currentPageNo) {
		this.currentPageNo = currentPageNo;
	}

	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public List<String> getArray() {
		return array;
	}

	public void setArray(List<String> array) {
		this.array = array;
	}

	public int getNextPageNo() {
		return nextPageNo;
	}

	public void setNextPageNo(int nextPageNo) {
		this.nextPageNo = nextPageNo;
	}

	public int getPrePageNo() {
		return prePageNo;
	}

	public void setPrePageNo(int prePageNo) {
		this.prePageNo = prePageNo;
	}
}
